package com.service.order;

import com.action.pc.order.OrderProductVo;
import com.action.wx.order.OrderVo;
import com.alibaba.fastjson.JSONObject;
import com.bean.Mb_account;
import com.bean.Order_info;
import com.bean.Order_pay;
import com.common.ModelAndJson;
import com.github.pagehelper.Page;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * Created by lvjianqing on 2017/9/10.
 */
public interface OrderService {
    /**
     * 分页查找订单
     * @param pageNum
     * @param pageSize
     * @param paraMap 查询条件
     * @return
     */
    Page findByPage(int pageNum, int pageSize, HashMap<String, Object> paraMap);
    Order_info findOrderById(Integer id);

    /**
     * 创建订单
     * @param od
     * @return
     */
    ModelAndJson  createOrder(OrderVo od);

    /**
     * 查询订单信息
     * @param orderNo
     * @return
     */
    Order_info findByOrderNo(String orderNo);

    void callBack(String orderNo);

    /**
     * 发货
     * @param order
     * @return
     */
    Order_info saveSend(Order_info order);

    /**
     * 退款、退货
     * @param order
     * @return
     */
    Order_info saveBack(Order_info order);

    Map countOrder(HashMap<String, Object> paraMap);

    Page findMemberOrdersByPage(int pageNum, int pageSize, HashMap<String, Object> paraMap);

    List<OrderProductVo> getOrderProductByOrderNo(String orderNo);

    public  boolean sendWxMsg(String openId, String content);
}
